package xyz.syyrjx.blog.entity.ai;

/**
 * @author 大地崩坏苍蝇兽
 * @date 2024/2/21 21:23
 * @description ...
 * @since v0.0.1
 */
public class AiDialogue {
    private String role;
    private String content;

    public AiDialogue() {
    }

    public AiDialogue(String role, String content) {
        this.role = role;
        this.content = content;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public static AiDialogue createUserDialogue(String content) {
        return new AiDialogue("user", content);
    }

    public static AiDialogue createAssistantDialogue(String content) {
        return new AiDialogue("assistant", content);
    }
}
